﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ExtremeSwank.Authentication.OpenID
{
    /// <summary>
    /// Interface used by all objects implementing per-user session persistence.
    /// </summary>
    public interface ISessionPersistence
    {
        /// <summary>
        /// Gets or sets whether or not Stateless mode will be forced.
        /// </summary>
        bool EnforceStatelessMode { get; set; }
        /// <summary>
        /// Gets or sets the nonce value used to protect against replay attacks.
        /// </summary>
        int Cnonce { get; set; }
        /// <summary>
        /// Gets or sets whether or not a delegate identity was discovered during
        /// the discovery process.
        /// </summary>
        bool DiscoveredDelegate { get; set; }
    }
}
